/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


@orangeMain: #FF6F3D;
@retina: ~"only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 120dpi)";
@import "../../../../skins/default/params.less";

.ai_center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.border-radius(@value) {
    border-radius: @value;
    -moz-border-radius: @value;
    -webkit-border-radius: @value;
}

.box-sizing {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.box-shadow(@byX: 0, @byY: 7px, @radius: 25px, @color: rgba(85, 85, 85, 0.15)) {
    -webkit-box-shadow: @byX @byY @radius @color;
    -moz-box-shadow: @byX @byY @radius @color;
    box-shadow: @byX @byY @radius @color;
}

.box-shadow-for-autofill(@type: inset, @byX: 0, @byY: 0, @blurRadius: 0, @radius: 56px, @color: #f9f9f9) {
    -webkit-box-shadow: @type @byX @byY @blurRadius @radius @color;
    -moz-box-shadow: @type @byX @byY @blurRadius @radius @color;
    box-shadow: @type @byX @byY @blurRadius @radius @color;
}

.display_flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.fw_wrap {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.h1-6 {
    h1, h2, h3, h4, h5, h6 {
        font-weight: bold;
        line-height: 133%;
        letter-spacing: -0.02em;
        .mainContentContainer();
    }
}

.h2-mixin {
    font-size: 32px;
    text-align: center;

    @media screen and (max-width: 1023px) {
        font-size: 30px;
        letter-spacing: -0.01em;
    }

    @media screen and (max-width: 592px) {
        font-size: 20px;
    }
}

.h3-mixin {
    font-size: 24px;
    text-align: center;

    @media screen and (max-width: 592px) {
        font-size: 18px;
        letter-spacing: -0.01em;
    }
}

.jc_center {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.jc_space_between {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.mainContentContainer {
    margin: 0 auto;
    width: 1120px;

    @media screen and (max-width: 1200px) {
        max-width: 928px;
        width: 91vw;
    }

    @media screen and (max-width: 1023px) {
        max-width: none;
        width: 90vw;
    }
}

.transition2(@property: color, @time: .5s, @property2: border, @time2: .5s) {
    -webkit-transition: @property @time,  @property2 @time2;
    -moz-transition:    @property @time,  @property2 @time2;
    -o-transition:      @property @time,  @property2 @time2;
    transition:         @property @time,  @property2 @time2;
}

.transition-duration(@time: 0.3s) {
    -webkit-transition-duration: @time;
    -o-transition-duration: @time;
    transition-duration: @time;
}

.clearFix::after {
    content: ".";
    display: none;
}

p {
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent;
    background-image: url(images/first_screen_bg.svg);
    background-position: center -508px;
    background-repeat: no-repeat;
    .h1-6();

    &.auth-maincontent-hidden {
        .personal-footer {
            background: transparent;
            border-top-color: transparent;
            bottom: 4px;
            position: absolute;

            .ListSocLink {
                display: none;
            }

            .personal-footer_w {
                background: transparent;
            }
        }

        #personalLogin {
            display: none;
        }
    }

    .auth-docs_btns_social {
        margin-top: 28px;

        #social {
            line-height: initial;

            ul.account-links {
                text-align: center;

                li {
                    display: inline-block;
                    float: none;
                    margin: 0 11px 11px;

                    &:first-child {
                        margin-left: 0;
                    }

                    &:last-child {
                        margin-right: 0;
                    }

                    a {
                        background-color: @body-color;
                        .border-radius(3px);
                        -webkit-box-shadow: 0px 0px 1px #e6e6e6, 0px 1px 1px #d4d4d4;
                        box-shadow: 0px 0px 1px #e6e6e6, 0px 1px 1px #d4d4d4;
                        height: 40px;
                    }

                    .google {
                        .border-radius(3px);

                        span {
                            background-image: url("images/google.svg");
                            background-position: center;
                            height: 40px;
                            margin-top: 0;
                            width: 114px;
                        }
                    }

                    .icon {
                        margin-top: 11px;
                    }
                }
            }
        }

        .errorBox {
            position: absolute;
            top: -54px;
        }
    }

    .auth-input-wrapper {
        background: @body-color;
        border: 1px solid #AAAAAA;
        border-radius: 3px;
        .box-sizing();
        height: 56px;
        position: relative;
        width: 100%;

        &:hover {
            border-color: @textColorBlackDark;
        }

        input {
            background: transparent;
            border: none;
            .box-sizing();
            color: @textColor;
            font-size: 16px;
            height: auto;
            line-height: 20px;
            margin-top: 22px;
            outline: none;
            padding: 0 16px;
            width: 100%;

            &:-webkit-autofill {
                .box-shadow-for-autofill(inset, 0, 0, 0, 28px, @body-color);
                color: @textColor;
                font-size: 16px;

                & + label {
                    font-size: 12px;
                    transform: translateX(2px) translateY(-12px);
                }
            }

            &::-ms-input-placeholder {
                color: transparent;
            }

            &::placeholder {
                color: transparent;
            }

            &::-webkit-input-placeholder {
                color: transparent;
            }

            &:-moz-placeholder {
                color: transparent;
            }
            /* FF 4-18 */
            &::-moz-placeholder {
                color: transparent;
            }
            /* FF 19+ */
            &:-ms-input-placeholder {
                color: transparent;
            }
            /* IE 10+ */
            /*&:invalid + label {
                    font-size: 16px;
                    transform: translateY(0);
                }*/
            &:focus + label {
                color: @textColor;
                font-size: 12px;
                transform: translateX(2px) translateY(-12px);
            }

            & + label {
                color: #CCCCCC;
                cursor: pointer;
                font-size: 16px;
                line-height: 12px;
                left: 14px;
                padding: 0;
                pointer-events: none;
                top: 20px;
                transition: transform 100ms ease;
                transform: translateY(0);
                position: absolute;
            }
        }

        &.focus, &.error, &.valid {
            label {
                color: @textColor;
                font-size: 12px;
                transform: translateX(2px) translateY(-12px);
            }
        }

        &.focus {
            background: @body-color;
            border-color: @textColorBlackDark;

            input:-webkit-autofill {
                .box-shadow-for-autofill(inset, 0, 0, 0, 28px, @body-color);
            }
        }

        &.error {
            background: #fff7f7;
            border-color: #CB0000;

            input:-webkit-autofill {
                .box-shadow-for-autofill(inset, 0, 0, 0, 28px, #fff7f7);
            }

            label {
                color: #D87373;
            }
        }

        &.valid {
            background: #F9FEEF;
            border-color: #8BB825;

            input:-webkit-autofill {
                .box-shadow-for-autofill(inset, 0, 0, 0, 28px, #F9FEEF);
            }

            label {
                color: @textColorBlackDark;
            }
        }
    }

    button {
        outline: none;
    }

    .button.gray {
        background: #444444;
        border-color: transparent;
        color: @body-color;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 18px;
        padding: 19px 24px;
        text-transform: uppercase;
        .transition-duration();

        &:hover {
            background: #555555;
            border-color: transparent;
            color: @body-color;
        }
    }

    .checkbox-conainer {
        a {
            color: @orangeMain;
        }

        input[type="checkbox"] {
            & + span {
                -webkit-appearance: none;
                background: #F9F9F9;
                border: 1px solid #AAAAAA;
                .border-radius(3px);
                .box-sizing();
                cursor: pointer;
                display: inline-block;
                height: 24px;
                margin-right: 4px;
                margin-left: 0;
                outline: none;
                width: 24px;
            }

            &:hover + span {
                border-color: @textColorBlackDark;
            }

            &:checked + span {
                background-color: #8BB825;
                border-color: #8BB825;

                &:before {
                    content: "";
                    border: 0 solid @body-color;
                    border-width: 0 2px 2px 0;
                    display: block;
                    height: 11px;
                    margin: 4px 8px;
                    pointer-events: none;
                    -webkit-transform: rotateZ(45deg);
                    transform: rotateZ(45deg);
                    width: 4px;
                }
            }
        }

        & > label {
            display: block;
            padding-bottom: 12px;

            label {
                color: @textColorBlackDark;
                display: inline-block;
                font-size: 14px;
                line-height: 160%;
                max-width: ~"calc(100% - 32px)";
                position: relative;
                vertical-align: top;
                top: 1px;
            }
        }
    }

    header {
        position: relative;
        z-index: 1;
    }

    .nowrapping {
        white-space: nowrap;
    }

    .or-conainer {
        display: block;
        font-size: 14px;
        font-weight: bold;
        line-height: 133%;
        margin: 8px 0 0;
        overflow: hidden;
        text-align: center;

        &:before,
        &:after {
            content: "";
            display: inline-block;
            width: 100%;
            height: 1px;
            background-color: #CCCCCC;
            position: relative;
            top: -5px;
        }

        &:before {
            margin-left: -100%;
            left: -12px;
        }

        &:after {
            margin-right: -100%;
            right: -12px;
        }
    }

    .paging-content {
        padding: 0;
    }

    .personal-footer {
        background: #F9F9F9;
        font-size: 14px;
        line-height: 160%;
        position: relative;

        a {
            color: #444444;
            text-decoration: underline;
        }

        .ListSocLink {
            .display_flex();
            .fw_wrap();
            -webkit-box-pack: end;
            -webkit-justify-content: flex-end;
            -ms-flex-pack: end;
            justify-content: flex-end;
            margin: 0;
            padding: 0;

            li {
                list-style-type: none;
                display: inline-block;
                width: 24px;
                height: 24px;
                margin: 0;
                padding-right: 16px;
                vertical-align: middle;

                &:last-child {
                    padding-right: 0;
                }

                label {
                    background-repeat: no-repeat;
                    background-image: url("images/color_social_icons.svg");
                    cursor: pointer;
                    display: block;
                    -webkit-filter: grayscale(1);
                    filter: grayscale(1);
                    height: 24px;
                    width: 28px;
                    margin: 0;
                    vertical-align: middle;
                    background-position-y: 0;

                    &:hover {
                        -webkit-filter: grayscale(0);
                        filter: grayscale(0);
                    }

                    &.social_grey_fb {
                        background-position-x: 2px;
                    }

                    &.social_grey_twi {
                        background-position-x: -38px;
                    }

                    &.social_grey_in {
                        background-position-x: -78px;
                    }

                    &.social_grey_tube {
                        background-position-x: -118px;
                    }

                    &.social_grey_blog {
                        background-position-x: -198px;
                    }

                    &.social_grey_medium {
                        background-position-x: -238px;
                    }

                    &.social_grey_instagram {
                        background-position-x: -278px;
                    }

                    &.social_grey_github {
                        background-position-x: -318px;
                    }

                    &.social_grey_fosstodon {
                        background-position-x: -395px;
                    }
                }
            }
        }

        .personal-footer_w {
            background: #F9F9F9;
            .mainContentContainer();
            padding: 0 0 40px;

            .partial-personal-footer {
                .display_flex();
                .jc_space_between();
                padding-top: 32px;
            }
        }
    }

    .personal-footer-links li {
        margin-bottom: 0;
    }

    .personal-footer_rights {
        float: none;
        text-align: center;
    }

    div .btn-form, #pwd_rem_panel_buttons .button {
        background-color: @orangeMain;
        border: none;
        .border-radius(3px);
        .box-sizing();
        color: @body-color;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        line-height: 16px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        .transition-duration();
        top: 0;

        &:hover, &:active {
            background-color: #ff7a4b;
        }

        &.disabled {
            background-color: #FFD4C5;
            cursor: default;
            pointer-events: none;
        }
    }

    .web-shown {
        display: block !important;
    }
}

main {
    margin-top: -63px;
    padding: 0;
}

#passwordRecovery {
    .button.gray, .cancelButton {
        display: none;
    }

    .containerBodyBlock, .containerHeaderBlock {
        background: transparent;
        padding: 0;
    }

    .containerHeaderBlock {
        padding-bottom: 48px;
        text-align: center;
    }

    #pswdRecoveryDialogText {
        font-size: 16px;
        line-height: 160%;

        .auth-input-wrapper {
            margin-top: 32px;
        }
    }

    #pwd_rem_panel_buttons .button {
        width: 100%;
    }

    .popupContainerClass {
        background: transparent;
        border: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        margin: 0 auto;
        width: 544px;
    }

    #pswdRecoveryDialogPopupHeader {
        font-weight: bold;
        line-height: 133%;
        letter-spacing: -0.02em;
        .h2-mixin();
        width: 100%;
    }

    #studio_emailPwdReminder {
        margin-top: 22px;
    }

    #studio_pwdReminderDialog {
        display: block;
    }
}

#studioPageContent {
    min-width: 0;
    width: 100%;

    .header-content {
        display: block;
        grid-area: none;
    }
}

.try-welcome-top {
    background-color: transparent;
    height: 62px;
    .mainContentContainer();
    min-width: 0;
    overflow: visible;
    padding: 0;

    &.studio-top-panel {
        .personal-languages {
            float: right;
            margin: 22px 15px 0 0;

            .personal-languages_select {
                height: 16px;

                & + #AuthFormLanguagesPanel.studio-action-panel {
                    border-color: #CCCCCC;
                    .box-shadow(0px, 20px, 50px, rgba(85, 85, 85, 0.15));
                    padding: 24px 0 24px 16px;

                    .dropdown-content {
                        width: 750px;
                        column-count: 3;

                        .dropdown-item {
                            margin: 6px 13px;
                            width: 224px;

                            a {
                                font-size: 14px;
                                padding-left: 32px;
                                text-align: left;

                                &:hover {
                                    color: @orangeMain;
                                }
                            }
                        }
                    }
                }

                span {
                    display: none;
                }

                &:after {
                    border-top-color: #444444;
                    top: 11px;
                }
            }
        }

        .studio-top-logo {
            margin-top: 26px;

            img {
                height: 28px;
            }
        }
    }
}

#personalAccountLogin, #personalCreateNow {
    display: none;
}

#personalLogin, #personalCreateNow, #personalAccountLogin {
    float: right;
    margin-top: 14px;
    margin-right: 28px;

    a {
        color: #444444;
        border: 1px solid @textColor;
        .border-radius(3px);
        .box-sizing();
        display: block;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 16px;
        min-width: 105px;
        padding: 15px 20px;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;

        &:hover {
            border-color: @orangeMain;
            color: @orangeMain;
            .transition2();
        }
    }
}

#personalCreateNow, #personalAccountLogin {
    a {
        display: inline-block;
    }

    .prebtn {
        color: @textColor;
        display: inline-block;
        font-size: 16px;
        line-height: 160%;
        padding-right: 21px;
    }
}

.auth-form-head_w {
    background-image: url(images/first_screen_illustration.svg);
    background-position: bottom;
    background-repeat: no-repeat;
    padding-top: 62px;
    padding-bottom: 384px;

    .first-screen-content {
        .display_flex();
        .jc_space_between();
        .mainContentContainer();
        padding-top: 56px;

        .auth-form-with_form_w {
            width: 543px;

            .auth-form-with_form {
                background-color: @body-color;
                border: 1px solid #CCCCCC;
                .border-radius(5px);
                .box-shadow(0px, 20px, 50px, rgba(85, 85, 85, 0.15));
                margin: 0;
                padding: 32px;
                position: relative;
            }

            .auth-form-with_form_btn {
                display: inline-block;
                min-width: 149px;
                position: absolute;
                right: 0;
            }
        }
    }
}

.auth-form-head {
    text-align: left;
    max-width: 544px;
    position: relative;

    .auth-form-header {
        font-size: 48px;
        letter-spacing: -0.03em;
        line-height: 110%;
        padding-top: 88px;
        text-align: left;
        width: auto;
    }

    .auth-form-subheader {
        font-size: 22px;
        line-height: 150%;
        padding-top: 24px;
    }
}

.auth-form-with {
    &.auth-form-create-doc {
        padding: 112px 0 48px;

        .carousel-container {
            .mainContentContainer();
        }

        .create-carousel {
            display: none;
            .mainContentContainer();

            &.slick-initialized {
                display: block;
            }

            .create-carousel-item {
                outline: none;

                .create-doc-text-title {
                    .h2-mixin();
                    position: relative;
                }

                .create-doc-text-content {
                    font-size: 18px;
                    line-height: 160%;
                    margin: 0 auto;
                    padding: 24px 0 40px;
                    text-align: center;
                    width: 948px;
                }
            }
        }

        .slick-list {
            padding: 0 !important;
        }

        .slick-carousel {
            display: none;
            margin: 0 auto;
            width: 1180px;
            max-width: 100vw;

            .slick-arrow {
                background: none;
                border-color: transparent;
                .border-radius(50%);
                cursor: pointer;
                font-size: 0;
                height: 56px;
                outline: none;
                position: absolute;
                top: 292px;
                .transition-duration();
                width: 56px;

                &:after {
                    border-color: #444444;
                    border-style: solid;
                    border-width: 1px;
                    border-left: none;
                    border-top: none;
                    border-width: 2px;
                    content: '';
                    display: block;
                    height: 9px;
                    width: 9px;
                }

                &:hover {
                    background: @body-color;
                    .box-shadow(0px, 20px, 50px, rgba(85, 85, 85, 0.15));

                    &:after {
                        border-color: @orangeMain;
                    }
                }
            }

            &.slick-initialized {
                display: block;
            }

            .slick-next {
                right: ~"calc(50% - 592px)";

                &:after {
                    margin-left: 14px;
                    transform: rotate(-45deg);
                }
            }

            .slick-prev {
                left: ~"calc(50% - 592px)";
                z-index: 1;

                &:after {
                    margin-left: 18px;
                    transform: rotate(135deg);
                }
            }
        }

        .create-doc-picture {
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            float: right;
            height: 690px;
            max-width: 100vw;
            position: relative;
            outline: none;
            width: 1180px;

            &.doc {
                background-image: url("images/screenshots/en/document.png");

                @media @retina {
                    background-image: url("images/screenshots/en/document@2x.png");
                }
            }

            &.spreadsheet {
                background-image: url("images/screenshots/en/spreadsheet.png");

                @media @retina {
                    background-image: url("images/screenshots/en/spreadsheet@2x.png");
                }
            }

            &.presentation {
                background-image: url("images/screenshots/en/presentation.png");

                @media @retina {
                    background-image: url("images/screenshots/en/presentation@2x.png");
                }
            }

            &.collaboration {
                background-image: url("images/screenshots/en/collaboration.png");

                @media @retina {
                    background-image: url("images/screenshots/en/collaboration@2x.png");
                }
            }
        }
    }

    &.auth-form-extend {
        background: @body-color;
        padding: 112px 0;

        h3 {
            .h2-mixin();
        }

        .third-party-container {
            .display_flex();
            .jc_space_between();
            .mainContentContainer();
            height: 124px;
            margin-top: 40px;

            .third-party {
                -webkit-filter: grayscale(100%);
                filter: grayscale(100%);
                -moz-filter: grayscale(100%);
                -o-filter: grayscale(100%);
                -ms-filter: grayscale(100%);
                width: 124px;
                height: 124px;
                display: inline-block;
                background-image: url(images/third_party_logos.svg);
                background-repeat: no-repeat;
                background-size: 964px 124px;
                .transition2(filter, .5s, -webkit-filter, .5s);

                &.google {
                    background-position: 0px 50%;
                }

                &.dropbox {
                    background-position: -335px 50%;
                }

                &.owncloud {
                    background-position: -505px 50%;
                }

                &.nextcloud {
                    background-position: -672px 50%;
                }

                &.yandex {
                    background-position: -842px 50%;
                }

                &.onedrive {
                    background-position: -170px 50%;
                }

                &:hover {
                    -webkit-filter: grayscale(0);
                    filter: grayscale(0);
                    -moz-filter: grayscale(0);
                    -o-filter: grayscale(0);
                    -ms-filter: grayscale(0);
                }
            }
        }
    }
    //auth-form-extend
}

.auth-form-with_form_w {
    .auth-form-with_form {
        .auth-form-settings {
            margin-top: 24px;
        }

        .auth-form-with_form_error {
            color: #c44747;
            font-size: 13px;
            line-height: 13px;
            margin-top: 5px;
            position: absolute;
        }

        .auth-input-row {
            margin-top: 24px;
            position: relative;
        }

        .auth-form-with_form_title {
            display: block;
            font-size: 18px;
            font-weight: bold;
            letter-spacing: -0.02em;
            line-height: 133%;
            max-width: 100%;
        }
    }
    /*Do not increase the level of specificity.*/
    .auth-input-wrapper {
        background: #F9F9F9;
        width: 333px;

        input:-webkit-autofill {
            .box-shadow-for-autofill(inset, 0, 0, 0, 28px, #F9F9F9);
        }
    }
    /*-----------------------------------------*/

    &.separate-window .auth-form-with_form {
        margin: 0 auto;
        padding: 168px 0;
        width: 544px;

        .auth-form-with_form_title {
            .h2-mixin();
        }

        .auth-input-row .auth-input-wrapper,
        .auth-input-wrapper {
            width: 100%;
        }

        .btn-form {
            display: block;
            margin: 16px 0 32px;
            width: 100%;
        }
    }
}

.auth-form-with_btns_social {
    display: block;
}

/*------Popup-------*/
.default-personal-popup {
    display: none;
    padding: 168px 0;
    position: relative;
    z-index: 0;

    .default-personal-popup_cnt {
        margin: 0 auto;
        width: 544px;

        .default-personal-popup_form-i {
            margin-bottom: 32px;
            position: relative;
        }

        h2 {
            .h2-mixin();
            max-width: 100%;
            padding-bottom: 32px;
            text-align: center;
        }
    }
}

.default-personal-popup_btn {
    width: 100%;
}

/*-------Login Popup-----*/
.login_accept-btn-cnt {
    margin-top: 16px;
    width: 100%;
}

/*---------Popup----------*/

.link-as-btn {
    padding: 32px 0;
    text-align: center;
}

.login_forget-psw, .back-to-login {
    color: @orangeMain;
    cursor: pointer;
    font-size: 16px;
    line-height: 160%;

    &:hover {
        text-decoration: underline;
    }
}

.popup_social-nets {
    text-align: initial;
    width: 100%;

    .social-login {
    }
}

/*---------------------*/
.borderRadius (@value: 3px) {
    border-radius: @value;
    -moz-border-radius: @value;
    -webkit-border-radius: @value;
}

#sendEmailSuccessPopup {
    .default-personal-popup_cnt {
        padding: 32px 0 72px;

        #activationEmail {
            font-weight: 600;
        }

        .btn-form {
            display: block;
        }

        .email-success-text {
            font-size: 16px;
            line-height: 24px;
            padding-bottom: 32px;
            text-align: center;
        }

        h2 {
            background-image: url("images/reg_success_checkmark.svg");
            background-position: top;
            background-repeat: no-repeat;
            .h2-mixin();
            padding-top: 64px;
        }
    }

    #goToMainPage {
        font-size: 13px;
    }
}

.cookieMess {
    bottom: 12px;
    display: none;
    min-height: 40px;
    position: fixed;
    width: 100%;
    z-index: 10;

    .cookieMess_container {
        .ai_center();
        background: rgba(249, 249, 249, 0.95);
        border: 1px solid #CCCCCC;
        .border-radius(5px);
        .box-shadow(0px, 7px, 15px, rgba(85, 85, 85, 0.1));
        .box-sizing();
        .display_flex();
        margin: 0 auto;
        padding: 16px;
        width: 544px;

        p {
            color: @textColor;
            font-size: 13px;
            line-height: 160%;

            a {
                color: @orangeMain;
            }
        }

        #personalcookie {
            margin-left: 24px;

            a.gotItBtn {
                color: #444444;
                border: 1px solid #444444;
                .border-radius(3px);
                .box-sizing();
                display: block;
                font-size: 12px;
                font-weight: 600;
                line-height: 133%;
                min-width: 99px;
                padding: 12px;
                text-align: center;
                text-decoration: none;
                text-transform: uppercase;
                .transition-duration();

                &:hover {
                    border-color: @orangeMain;
                    color: @orangeMain;
                }
            }
        }
    }
}

.auth-form-container {
    color: @textColor;
    margin: 0 auto;
    width: 100%;

    a {
        color: @orangeMain;
    }

    .auth-downloads-block {
        background-color: #F9F9F9;
        padding: 112px 0;

        .auth-download-block {
            .ai_center();
            border: 1px solid #CCCCCC;
            .border-radius(5px);
            .box-shadow(0px, 7px, 15px, rgba(85, 85, 85, 0.1));
            .box-sizing();
            .display_flex();
            .mainContentContainer();
            margin-bottom: 32px;
            min-height: 380px;

            &.d-apps {
                background-image: -o-linear-gradient(349.21deg, @textColorBlackDark 23.25%, #444444 78.7%);
                background-image: linear-gradient(100.79deg, @textColorBlackDark 23.25%, #444444 78.7%);
                margin-bottom: 0;

                .auth-download-img {
                    background-image: url("images/screenshots/en/mobile.png");

                    @media @retina {
                        background-image: url("images/screenshots/en/mobile@2x.png");
                    }
                }

                .auth-download-txt {
                    b {
                        white-space: nowrap;
                    }

                    div {
                        .ai_center();
                        .display_flex();

                        a {
                            background-color: transparent;
                            background-position: center;
                            background-repeat: no-repeat;
                            border: 1px solid @body-color;
                            width: 170px;

                            &:hover {
                                background-color: rgba(255, 255, 255, 0.1);
                            }

                            &.app-store {
                                background-image: url("images/buttons_icons/en/app_store.svg");
                                margin-right: 8px;
                            }

                            &.google-play {
                                background-image: url("images/buttons_icons/en/google_play.svg");
                                margin-left: 0;
                            }
                        }
                    }
                }
            }

            &.d-chrome-extension {
                background-color: @body-color;

                .auth-download-img {
                    background-image: url("images/screenshots/en/online.png");

                    @media @retina {
                        background-image: url("images/screenshots/en/online@2x.png");
                    }
                }

                .auth-download-txt {
                    color: @textColor;

                    a {
                        background-color: transparent;
                        background-image: url("images/buttons_icons/en/chrome_web_store.svg");
                        background-position: center;
                        background-repeat: no-repeat;
                        border-color: #444444;
                        height: 56px;
                        width: 188px;

                        &:hover {
                            background-color: rgba(51, 51, 51, 0.05);
                        }
                    }
                }
            }

            &.d-desktop-app {
                background-color: #FF8E3D;
                background-image: -o-linear-gradient(351.07deg, #FF8E3D 16.64%, #FF6F3D 99.83%);
                background-image: linear-gradient(98.93deg, #FF8E3D 16.64%, #FF6F3D 99.83%);

                .auth-download-img {
                    background-image: url("images/screenshots/en/desktop.png");

                    @media @retina {
                        background-image: url("images/screenshots/en/desktop@2x.png");
                    }
                }

                .auth-download-txt {
                    -webkit-box-ordinal-group: 2;
                    -webkit-order: 1;
                    -ms-flex-order: 1;
                    order: 1;

                    a {
                        border-color: @body-color;
                        color: @body-color;
                        display: inline-block;
                        font-size: 13px;
                        line-height: 133%;
                        letter-spacing: 0.04em;
                        min-width: 130px;
                        padding: 19px 23px;
                        text-transform: uppercase;

                        &:hover {
                            background-color: rgba(255, 255, 255, 0.1);
                        }
                    }
                }
            }

            .auth-download-img {
                background-position: bottom;
                background-repeat: no-repeat;
                background-size: contain;
                height: 380px;
                width: 550px;
            }

            .auth-download-txt {
                color: @body-color;
                font-size: 22px;
                letter-spacing: -0.02em;
                line-height: 160%;
                padding: 32px;
                text-align: center;
                width: 504px;

                a {
                    background-color: transparent;
                    border: 1px solid #444444;
                    .border-radius(3px);
                    .box-sizing();
                    display: block;
                    height: 56px;
                    margin: 0 auto;
                    text-align: center;
                    text-decoration: none;
                    .transition-duration();
                }

                div {
                    padding-top: 24px;
                }
            }
        }

        h3 {
            .h2-mixin();
            padding-bottom: 56px;
        }
    }

    .auth-quote-block {
        padding: 112px 0;

        .auth-quote-container {
            margin: 0 auto;
            width: 772px;

            &:before {
                background-image: url("images/softpedia.svg"), url("images/quotation_marks.svg");
                background-position: center 60%, top;
                background-repeat: no-repeat;
                content: '';
                display: block;
                height: 160px;
                margin: 0 auto -24px;
                width: 196px;
            }

            a {
                display: block;
                font-size: 14px;
                line-height: 160%;
                margin-top: 32px;
                text-align: center;
            }

            p {
                font-size: 24px;
                font-style: italic;
                line-height: 160%;
                text-align: center;
            }
        }
    }

    .heartheweb-block {
        background: #F9F9F9;
        padding: 112px 0;

        .heartheweb-container {
            .mainContentContainer();

            h3 {
                .h3-mixin();
            }

            .heartheweb_reviews_list {
                .display_flex();
                .fw_wrap();
                height: 513px;
                .jc_space_between();
                padding-top: 56px;
                position: relative;

                .review_block {
                    background: @body-color;
                    border: 1px solid #CCCCCC;
                    .border-radius(5px);
                    .box-sizing();
                    margin-bottom: 16px;
                    padding: 24px;
                    width: 360px;
                    /*&:nth-child(3n+2) {
                        width: 368px;
                    }*/
                    blockquote {
                        border: none;
                        font-size: 16px;
                        line-height: 160%;
                        margin: 0;
                        padding: 0;
                    }

                    .review_block_author_name {
                        color: @textColor;
                        font-weight: bold;
                        font-size: 13px;
                        line-height: 120%;
                        letter-spacing: -0.01em;
                    }

                    .review_block_text {
                        font-size: 16px;
                        font-style: normal;
                        line-height: 160%;
                    }

                    .review_top {
                        .ai_center();
                        .display_flex();
                        .jc_space_between();
                        height: 20px;
                        padding-bottom: 4px;

                        .rev-stat {
                            background-image: url("images/review-stars.svg");
                            background-repeat: no-repeat;
                            display: inline-block;
                            height: 16px;
                            width: 16px;
                        }

                        .star_empty {
                            background-position-x: right;
                        }
                    }
                }
            }
        }

        .review-disclaimer {
            font-style: italic;
            font-size: 14px;
            line-height: 160%;
            margin: 40px auto 0;
            text-align: center;
            width: 804px;
        }
    }

    &.cs .auth-downloads-block .auth-download-block.d-apps .auth-download-txt div a {
        &.app-store {
            background-image: url("images/buttons_icons/cs/app_store.svg");
        }

        &.google-play {
            background-image: url("images/buttons_icons/cs/google_play.svg");
        }
    }

    &.de {
        .auth-downloads-block .auth-download-block {
            &.d-apps {
                .auth-download-img {
                    background-image: url("images/screenshots/de/mobile.png");

                    @media @retina {
                        background-image: url("images/screenshots/de/mobile@2x.png");
                    }
                }

                .auth-download-txt div a {
                    &.app-store {
                        background-image: url("images/buttons_icons/de/app_store.svg");
                    }

                    &.google-play {
                        background-image: url("images/buttons_icons/de/google_play.svg");
                    }
                }
            }

            &.d-chrome-extension {
                .auth-download-img {
                    background-image: url("images/screenshots/de/online.png");

                    @media @retina {
                        background-image: url("images/screenshots/de/online@2x.png");
                    }
                }

                .auth-download-txt a {
                    background-image: url("images/buttons_icons/de/chrome_web_store.svg");
                }
            }

            &.d-desktop-app .auth-download-img {
                background-image: url("images/screenshots/de/desktop.png");

                @media @retina {
                    background-image: url("images/screenshots/de/desktop@2x.png");
                }
            }
        }

        .auth-form-with.auth-form-create-doc .create-doc-picture {
            &.doc {
                background-image: url("images/screenshots/de/document.png");

                @media @retina {
                    background-image: url("images/screenshots/de/document@2x.png");
                }
            }

            &.spreadsheet {
                background-image: url("images/screenshots/de/spreadsheet.png");

                @media @retina {
                    background-image: url("images/screenshots/de/spreadsheet@2x.png");
                }
            }

            &.presentation {
                background-image: url("images/screenshots/de/presentation.png");

                @media @retina {
                    background-image: url("images/screenshots/de/presentation@2x.png");
                }
            }

            &.collaboration {
                background-image: url("images/screenshots/de/collaboration.png");

                @media @retina {
                    background-image: url("images/screenshots/de/collaboration@2x.png");
                }
            }
        }
    }

    &.es .auth-downloads-block .auth-download-block {
        &.d-apps .auth-download-txt div a {
            &.app-store {
                background-image: url("images/buttons_icons/es/app_store.svg");
            }

            &.google-play {
                background-image: url("images/buttons_icons/es/google_play.svg");
            }
        }

        &.d-chrome-extension .auth-download-txt a {
            background-image: url("images/buttons_icons/es/chrome_web_store.svg");
        }
    }

    &.fr {
        .auth-downloads-block .auth-download-block {
            &.d-apps {
                .auth-download-img {
                    background-image: url("images/screenshots/fr/mobile.png");

                    @media @retina {
                        background-image: url("images/screenshots/fr/mobile@2x.png");
                    }
                }

                .auth-download-txt div a {
                    &.app-store {
                        background-image: url("images/buttons_icons/fr/app_store.svg");
                    }

                    &.google-play {
                        background-image: url("images/buttons_icons/fr/google_play.svg");
                    }
                }
            }

            &.d-chrome-extension {
                .auth-download-img {
                    background-image: url("images/screenshots/fr/online.png");

                    @media @retina {
                        background-image: url("images/screenshots/fr/online@2x.png");
                    }
                }

                .auth-download-txt a {
                    background-image: url("images/buttons_icons/fr/chrome_web_store.svg");
                }
            }

            &.d-desktop-app .auth-download-img {
                background-image: url("images/screenshots/fr/desktop.png");

                @media @retina {
                    background-image: url("images/screenshots/fr/desktop@2x.png");
                }
            }
        }

        .auth-form-with.auth-form-create-doc .create-doc-picture {
            &.doc {
                background-image: url("images/screenshots/fr/document.png");

                @media @retina {
                    background-image: url("images/screenshots/fr/document@2x.png");
                }
            }

            &.spreadsheet {
                background-image: url("images/screenshots/fr/spreadsheet.png");

                @media @retina {
                    background-image: url("images/screenshots/fr/spreadsheet@2x.png");
                }
            }

            &.presentation {
                background-image: url("images/screenshots/fr/presentation.png");

                @media @retina {
                    background-image: url("images/screenshots/fr/presentation@2x.png");
                }
            }

            &.collaboration {
                background-image: url("images/screenshots/fr/collaboration.png");

                @media @retina {
                    background-image: url("images/screenshots/fr/collaboration@2x.png");
                }
            }
        }
    }

    &.it .auth-downloads-block .auth-download-block {
        &.d-apps .auth-download-txt div a {
            &.app-store {
                background-image: url("images/buttons_icons/it/app_store.svg");
            }

            &.google-play {
                background-image: url("images/buttons_icons/it/google_play.svg");
            }
        }

        &.d-chrome-extension .auth-download-txt a {
            background-image: url("images/buttons_icons/it/chrome_web_store.svg");
        }
    }

    &.ja .auth-downloads-block .auth-download-block.d-apps .auth-download-txt div a {
        &.app-store {
            background-image: url("images/buttons_icons/ja/app_store.svg");
        }

        &.google-play {
            background-image: url("images/buttons_icons/ja/google_play.svg");
        }
    }

    &.nl .auth-downloads-block .auth-download-block.d-apps .auth-download-txt div a {
        &.app-store {
            background-image: url("images/buttons_icons/nl/app_store.svg");
        }

        &.google-play {
            background-image: url("images/buttons_icons/nl/google_play.svg");
        }
    }

    &.pt .auth-downloads-block .auth-download-block {
        &.d-apps .auth-download-txt div a {
            &.app-store {
                background-image: url("images/buttons_icons/pt/app_store.svg");
            }

            &.google-play {
                background-image: url("images/buttons_icons/pt/google_play.svg");
            }
        }

        &.d-chrome-extension .auth-download-txt a {
            background-image: url("images/buttons_icons/pt/chrome_web_store.svg");
        }
    }

    &.ru {
        .auth-downloads-block .auth-download-block {
            &.d-apps {
                .auth-download-img {
                    background-image: url("images/screenshots/ru/mobile.png");

                    @media @retina {
                        background-image: url("images/screenshots/ru/mobile@2x.png");
                    }
                }

                .auth-download-txt div a {
                    &.app-store {
                        background-image: url("images/buttons_icons/ru/app_store.svg");
                    }

                    &.google-play {
                        background-image: url("images/buttons_icons/ru/google_play.svg");
                    }
                }
            }

            &.d-chrome-extension {
                .auth-download-img {
                    background-image: url("images/screenshots/ru/online.png");

                    @media @retina {
                        background-image: url("images/screenshots/ru/online@2x.png");
                    }
                }

                .auth-download-txt a {
                    background-image: url("images/buttons_icons/ru/chrome_web_store.svg");
                }
            }

            &.d-desktop-app .auth-download-img {
                background-image: url("images/screenshots/ru/desktop.png");

                @media @retina {
                    background-image: url("images/screenshots/ru/desktop@2x.png");
                }
            }
        }

        .auth-form-with.auth-form-create-doc .create-doc-picture {
            &.doc {
                background-image: url("images/screenshots/ru/document.png");

                @media @retina {
                    background-image: url("images/screenshots/ru/document@2x.png");
                }
            }

            &.spreadsheet {
                background-image: url("images/screenshots/ru/spreadsheet.png");

                @media @retina {
                    background-image: url("images/screenshots/ru/spreadsheet@2x.png");
                }
            }

            &.presentation {
                background-image: url("images/screenshots/ru/presentation.png");

                @media @retina {
                    background-image: url("images/screenshots/ru/presentation@2x.png");
                }
            }

            &.collaboration {
                background-image: url("images/screenshots/ru/collaboration.png");

                @media @retina {
                    background-image: url("images/screenshots/ru/collaboration@2x.png");
                }
            }
        }
    }

    &.zh .auth-downloads-block .auth-download-block.d-apps .auth-download-txt div a {
        &.app-store {
            background-image: url("images/buttons_icons/zh/app_store.svg");
        }

        &.google-play {
            background-image: url("images/buttons_icons/zh/google_play.svg");
        }
    }
}

body.desktop {
    #loginPopup {
        display: block;
    }

    .default-personal-popup_check,
    .personal-footer,
    .auth-form-with_form_w,
    .auth-form-container {
        display: none;
    }

    main {
        margin-top: 0;
    }

    .toast-top-right {
        right: ~"calc(50% - 195px)";
    }

    .auth-form-with_form_w {
        top: 108px;
        left: ~"calc(50% - 229px)";
    }

    .auth-form-with_form {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }

    .default-personal-popup {
        padding:  ~"calc(50vh - 307px)" 0;
    }

    .web-shown {
        display: none !important;
    }
}

@media screen and (max-width: 1200px) {
    .auth-form-container {
        .auth-downloads-block .auth-download-block {
            min-height: 354px;

            .auth-download-txt {
                width: 312px;
            }

            &.d-apps .auth-download-txt b {
                white-space: initial;
            }

            &.d-chrome-extension, &.d-desktop-app {
                .auth-download-img {
                    height: 354px;
                }
            }
        }

        .auth-quote-block {
            padding: 136px 0 84px;
        }

        .heartheweb-block .heartheweb-container .heartheweb_reviews_list .review_block {
            width: 289px;
        }
    }

    .auth-form-head {
        width: 49%;

        .auth-form-subheader {
            font-size: 18px;
            line-height: 160%;
        }
    }

    .auth-form-with.auth-form-create-doc {
        .create-carousel .create-carousel-item .create-doc-text-content {
            width: auto;
        }

        .create-doc-picture {
            background-size: 115vw;
            background-position-x: center;
            height: 65vw;

            &.collaboration {
                background-size: 108vw;
                background-position-x: -2vw;
            }
        }

        .slick-carousel {
            width: ~"calc(100vw - 18px)";

            .slick-arrow {
                display: none !important;
            }
        }
    }

    .auth-form-head_w {
        background-position-x: -10.5vw;
        background-size: 113.25vw;
        padding-bottom: 304px;

        .first-screen-content .auth-form-with_form_w {
            width: 447px;
        }
    }

    .auth-form-with.auth-form-extend {
        width: 100%;

        .third-party-container > div {
            width: 124px;

            .third-party {
                width: 100%;
            }
        }
    }

    .auth-form-with_form_w .auth-form-with_form .auth-input-row .auth-input-wrapper {
        width: 237px;
    }

    body {
        background-position: -67vw -46vw;
        background-size: 225vw;

        .personal-footer .personal-footer_w {
            display: block;
            padding-bottom: 48px;

            .partial-personal-footer {
                width: 100%;
            }
        }
    }
}

@media screen and (max-width: 1023px) {
    .auth-form-container {
        .auth-downloads-block .auth-download-block {
            width: ~"calc(100% - 96px)";
            display: block;

            .auth-download-img {
                width: auto;
            }

            &.d-apps .auth-download-img {
                height: 405px;
            }

            &.d-desktop-app .auth-download-img {
                margin-top: -28px;
            }

            &.d-chrome-extension .auth-download-img {
                margin-top: -40px;
            }

            &.d-chrome-extension, &.d-desktop-app {
                .auth-download-img {
                    height: 380px;
                }
            }

            .auth-download-txt {
                width: auto;
            }
        }

        .auth-quote-block {
            padding: 80px 0;

            .auth-quote-container {
                width: 90vw;

                p {
                    font-size: 20px;
                }
            }
        }

        .heartheweb-block {
            padding: 80px 0 96px;

            .heartheweb-container .heartheweb_reviews_list {
                padding-top: 32px;

                .review_block {
                    width: 43.725vw;
                }
            }

            .review-disclaimer {
                margin-top: 16px;
                width: 90vw;
            }
        }
    }

    .auth-form-head {
        max-width: none;
        text-align: center;
        width: 100%;

        .auth-form-header {
            padding-top: 16px;
            text-align: center;
        }

        .auth-form-subheader {
            padding-bottom: 56px;
        }
    }

    .auth-form-head_w {
        background-position-x: -0.5vw;
        background-size: 98vw;
        padding-bottom: 284px;

        .first-screen-content {
            display: block;

            .auth-form-with_form_w {
                width: 100%;
            }
        }
    }

    .auth-form-with {
        &.auth-form-create-doc {
            padding: 104px 0;

            .create-carousel .create-carousel-item .create-doc-text-content {
                font-size: 16px;
            }

            .create-doc-picture {
                background-size: 108vw;
                background-position-x: -5vw;
                height: 60vw;

                &.collaboration {
                    background-position-x: -2.5vw;
                }
            }
        }

        &.auth-form-extend {
            padding: 0 0 80px;

            .third-party-container {
                .fw_wrap();
                height: auto;
                .jc_center();
                margin-top: 32px;

                & > div {
                    text-align: center;
                    width: 25%;

                    .third-party {
                        width: 124px;
                    }
                }
            }
        }
    }

    .auth-form-with_form_w .auth-form-with_form {
        .auth-form-with_form_title {
            text-align: center;
        }

        .auth-input-row .auth-input-wrapper {
            width: ~"calc(100% - 146px)";
        }
    }

    body {
        background-position: -114vw -67vw;
        background-size: 320vw;

        &.auth-maincontent-hidden {
            .personal-footer .personal-footer_w {
                padding-bottom: 24px;
            }

            .personal-footer_rights {
                padding-top: 24px;
            }
        }

        .personal-footer {
            .ListSocLink {
                .jc_center();
            }

            .personal-footer_w {
                padding-bottom: 40px;

                .partial-personal-footer {
                    display: block;
                }
            }
        }

        .personal-footer-links {
            .display_flex();
            .jc_center();
            max-width: inherit;
            width: 100%;

            li {
                margin: 0 12px;
                text-align: center;
            }
        }

        .personal-footer_rights {
            padding-top: 32px;
        }
    }
}

@media screen and (max-width: 767px) {
    .auth-form-with.auth-form-create-doc .create-doc-picture {
        background-position-x: -5.5vw;
    }

    body.auth-maincontent-hidden .personal-footer .partial-personal-footer {
        padding-top: 0;
    }

    #personalCreateNow, #personalAccountLogin {
        float: none;
        margin: 48px auto;
        text-align: center;
        width: 100%;

        a {
            max-width: 544px;
            width: 90vw;
        }

        .prebtn {
            display: block;
            font-size: 14px;
            font-weight: 600;
            line-height: 133%;
            padding: 0 0 16px;
        }
    }

    .try-welcome-top.studio-top-panel .personal-languages .personal-languages_select + #AuthFormLanguagesPanel.studio-action-panel {
        margin-left: 2px;
        padding: 8px 0 4px 8px;

        .dropdown-content {
            width: 310px;
            column-count: auto;

            &::-webkit-scrollbar-thumb {
                border-width: 0px 5px;
            }
        }
    }
}

@media screen and (max-width: 592px) {
    .auth-form-container {
        .auth-downloads-block {
            padding: 48px 0;

            .auth-download-block {
                background-image: none;
                min-height: auto;
                width: 90vw;

                .auth-download-txt {
                    font-size: 16px;
                    padding: 16px 15px 32px;
                }

                &.d-apps {
                    .auth-download-img {
                        height: 206px;
                    }

                    .auth-download-txt div {
                        display: block;

                        a {
                            &.app-store, &.google-play {
                                margin: 0 auto;
                            }

                            &.app-store {
                                margin-bottom: 8px;
                            }
                        }
                    }
                }

                &.d-desktop-app .auth-download-txt a {
                    font-size: 12px;
                    height: auto;
                    line-height: 16px;
                    padding: 15px 23px;
                    width: 100%;
                }

                &.d-chrome-extension .auth-download-txt {
                    font-size: 14px;
                }

                &.d-chrome-extension, &.d-desktop-app {
                    .auth-download-img {
                        height: 200px;
                    }
                }
            }

            h3 {
                padding-bottom: 24px;
            }
        }

        .auth-quote-block {
            padding: 48px 0;

            .auth-quote-container {
                &:before {
                    background-size: 100%, 82px 66px;
                    height: 92px;
                    margin-bottom: 8px;
                }

                p {
                    font-size: 18px;
                }
            }
        }

        .heartheweb-block {
            padding: 48px 0;

            .heartheweb-container .heartheweb_reviews_list {
                padding-top: 24px;

                .review_block {
                    width: 100%;

                    .review_block_author_name {
                        font-size: 12px;
                    }

                    .review_block_text {
                        font-size: 14px;
                    }
                }
            }

            .review-disclaimer {
                margin-top: 8px;
            }
        }
    }

    .auth-form-head {
        .auth-form-header {
            font-size: 30px;
            letter-spacing: -0.02em;
            line-height: 133%;
        }

        .auth-form-subheader {
            font-size: 16px;
        }
    }

    .auth-form-head_w {
        background-position-x: -75vw;
        background-size: 235vw;
        padding-bottom: 210px;

        .first-screen-content {
            width: 100%;

            .auth-form-head {
                margin: 0 auto;
                width: 90vw;
            }

            .auth-form-with_form_w {
                max-width: ~"calc(100vw - 18px)";

                .auth-form-with_form_btn {
                    margin: 8px 0 16px;
                    position: relative;
                    width: 100%;
                }
            }
        }
    }

    .auth-form-with {
        &.auth-form-create-doc {
            padding: 102px 0 60px;

            .create-carousel .create-carousel-item .create-doc-text-content {
                padding: 16px 0 24px;
            }

            .create-doc-picture {
                background-position-x: -6vw;
            }
        }

        &.auth-form-extend {
            padding-bottom: 48px;

            .third-party-container {
                margin-top: 24px;

                & > div {
                    width: 50%;
                }
            }
        }
    }

    .auth-form-with_form_w {
        .auth-form-with_form {
            .auth-form-settings .auth-form-setting > label {
                .ai_center();
                .display_flex();

                label {
                    font-size: 13px;
                    top: 0;
                }
            }

            .auth-form-with_form_error {
                font-size: 12px;
                margin-top: 4px;
            }

            .auth-input-row .auth-input-wrapper {
                width: 100%;
            }
        }

        .or-conainer {
            font-size: 14px;
        }

        &.separate-window .auth-form-with_form {
            padding: 96px 0 48px;
            width: 90vw;

            .btn-form {
                margin: 10px 0 24px;
            }
        }
    }

    .cookieMess {
        bottom: 0;

        .cookieMess_container {
            border-radius: 0;
            display: block;
            width: 100%;

            p {
                font-size: 12px;
            }

            #personalcookie {
                margin: 16px 0 0;
            }
        }
    }

    body {
        background-position: -353vw -164vw;
        background-size: 780vw;

        &.auth-maincontent-hidden .personal-footer {
            bottom: 0;
            position: relative;

            .personal-footer_w {
                padding: 16px 0;
            }
        }

        .auth-input-wrapper {
            height: 48px;

            input {
                font-size: 13px;
                margin-top: 20px;

                &:-webkit-autofill {
                    font-size: 13px;

                    & + label {
                        font-size: 11px;
                    }
                }

                &:focus + label {
                    font-size: 11px;
                }

                & + label {
                    top: 16px;
                }
            }

            &.focus, &.error, &.valid {
                label {
                    font-size: 11px;
                }
            }
        }

        .button.gray {
            .box-sizing();
            width: 100%;
        }

        .checkbox-conainer {
            input[type="checkbox"] + span {
                margin-right: 8px;
            }

            & > label {
                padding-bottom: 16px;
            }
        }

        div .btn-form, #pwd_rem_panel_buttons .button {
            font-size: 13px;
            padding: 16px;
        }

        #loginPopup, #passwordRecovery {
            &.default-personal-popup {
                padding: 96px 0 0;
            }
        }

        .or-conainer {
            font-size: 13px;
            margin-top: 24px;
        }

        #passwordRecovery.default-personal-popup {
            padding-bottom: 96px;
        }

        .personal-footer {
            font-size: 13px;

            .ListSocLink {
                margin: 0 auto;
                max-width: 75vw;
                padding-left: 0;

                li {
                    padding: 0 12px 20px;
                }
            }

            .personal-footer_w {
                .display_flex();
                .fw_wrap();
                padding: 24px 0 36px;

                .partial-personal-footer {
                    .fw_wrap();
                    padding-top: 4px;
                }
            }
        }

        .personal-footer-links li {
            width: 50%;
        }

        .personal-footer_rights {
            padding-top: 24px;
            width: 100%;
        }
    }

    .default-personal-popup .default-personal-popup_cnt {
        width: 90vw;

        .auth-input-wrapper {
            input + label {
                font-size: 15px;
            }

            &.focus, &.error, &.valid {
                input + label {
                    font-size: 11px;
                }
            }
        }

        .checkbox-conainer > label {
            .display_flex();
            padding-bottom: 8px;
        }

        .default-personal-popup_form-i {
            margin-bottom: 24px;
        }

        h2 {
            padding-bottom: 24px;
        }
    }

    .link-as-btn {
        padding: 24px 0 0;
    }

    .login_forget-psw, .back-to-login {
        font-size: 14px;
    }

    #passwordRecovery {
        .containerHeaderBlock {
            padding-bottom: 24px;
        }

        .middle-button-container {
            margin-top: 24px;
        }

        .popupContainerClass {
            width: 90vw;
        }

        #pswdRecoveryDialogText {
            font-size: 13px;
            text-align: center;

            .auth-input-wrapper {
                margin-top: 24px;
            }
        }

        #studio_emailPwdReminder {
            margin-top: 20px;
        }
    }

    #personalLogin {
        float: none;
        display: inline-block;
        margin-top: 16px;

        a {
            padding: 11px 20px;
        }
    }

    #sendEmailSuccessPopup {
        padding: 96px 0 112px;

        .default-personal-popup_cnt {
            padding: 0;

            .btn-form {
                font-weight: 600;
            }

            .email-success-text {
                font-size: 14px;
                line-height: 22px;
                padding-bottom: 24px;
            }
        }

        #goToMainPage {
            font-size: 12px;
        }
    }

    .studio-top-panel > ul {
        padding: 0 8px;
        text-align: center;
    }

    .top-logo {
        overflow: hidden;
        width: 25px;
    }

    .try-welcome-top.studio-top-panel .studio-top-logo {
        margin-top: 24px;
    }
}

@media screen and (max-height: 548px) {
    .try-welcome-top.studio-top-panel .personal-languages .personal-languages_select + #AuthFormLanguagesPanel.studio-action-panel .dropdown-content {
        max-height: ~"calc(95vh - 48px)";
    }
}

.recaptcha-container {
    height: 78px;
    margin: 20px 0 20px 40px;
}
